<template>
    <div>
        <el-menu :default-active="activeMenu" mode="horizontal">
            
            <el-menu-item :index="1">
                <router-link :to="/home">Home</router-link>
            </el-menu-item>
            
            <el-menu-item :index="2">
                <router-link :to="/about">About</router-link>
            </el-menu-item>
            
        </el-menu>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                activeMenu: '1',
                // 这里不再需要 JSON 解析
            };
        },
    };
</script>

<style scoped>
    /* 可添加自定义样式 */
</style>